package com.asd.system.service;

import com.asd.common.Result;
import com.asd.system.entity.User;
import com.asd.system.entity.vo.UserVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author
 * @createtime 2021-09-13 14:19
 * @description
 */
public interface IUserService extends IService<User> {

    List<User> selectUserPage(Page<User> page);


    /**
     * 修改密码
     *
     * @param user
     * @return
     */
    public Result<?> changePassword(User user);

    User findToName(String username);

    Result checkUserIsEffective(User user);

    /**
     * 批量删除用户
     * @param userIds
     * @return
     */
    public boolean deleteBatchUsers(String userIds);

    List<UserVO> getByOrgId(String orgId);

    public boolean updateUserBasicInfo(String id, String nickname, String note);
}
